@extends('layouts/default')

@section('content')

<body class="metrouicss" style="padding-top: 20px; padding-bottom: 40px;" background-color>
    <div class="grid">
      <div class="row">
        <div class="offset1">
          <span class="text-tile">Bienvenido, {{ Cache::get('usr_name') }}.</span><br/>
            <span class="text-tile">Seleccione por cual operador deseas ser atendido:</span>
        </div>
        </div> <!-- /container -->
        <div class="row">&nbsp;</div>
        <div class="row">
          <div class="offset1">
            <ul class="listview fluid">

          @foreach ($operators as $operator)
            <?php if($operator->ope_image == '#') $operator->ope_image = 'default-avatar.png'; ?>
              <li>
                <div id="{{ $operator->ope_code }}" class="clickme2">
                  <div class="icon"><img src="{{ url('images/'.$operator->ope_image) }}" width="200px"></div>
                  <div class="data">
                      <h4>{{ $operator->ope_name }}</h4>
                      <p> Número de clientes por atender: --</p>
                    </div>
                  </div>
                </li>
            @endforeach

            </ul>
          </div>
      </div>
      <div class="row">
        <div class="span2 offset1">
          <button id="confirmOperator" class="default" style="margin-left:5px" disabled>
              Continuar
              <i class="icon-arrow-right-3 right"></i>
            </button>
        </div>
      </div>
    </div>

    {{ Form::open(array('id' => 'servicesForm', 'url' => 'endRequest')) }}
		<input id="d077f244def8a70" name="d077f244def8a70" type="hidden" value=""/>
		<input id="9a97eda6d89f5c9" name="9a97eda6d89f5c9" type="hidden" value="{{ Cache::get('usr_code') }}"/>
		<input id="8a0679707def8a7" name="8a0679707def8a7" type="hidden" value="{{ Cache::get('usr_rifci') }}"/>
	{{ Form::close() }}

@stop